n=100; a=[99,6,48,29,62,84,91,41,4,25,71,90,53,38,80,30,65,52,35,94,97,89,27,28,23,36,59,40,12,21,13,60,44,31,34,93,100,8,56,1,83,37,79,82,76,77,88,96,45,14,46,26,66,58,32,98,78,67,2,16,73,49,69,72,81,17,47,24,86,63,19,15,51,92,7,10,33,74,11,50,22,42,57,68,70,9,43,64,39,18,95,75,20,3,55,54,61,5,85,87]; b=[76,33,24,50,68,94,75,39,5,25,15,69,57,48,59,97,74,27,36,42,62,9,82,92,84,13,63,71,72,45,88,38,41,98,83,44,81,3,40,73,7,80,95,17,37,31,19,18,30,29,14,8,85,90,54,78,34,77,53,67,16,46,1,49,89,32,12,26,22,58,91,96,6,86,23,28,61,43,35,21,55,100,2,56,64,11,51,70,87,52,93,10,47,60,79,65,99,20,66,4];